projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef78f3
)
lib: satisfy clippy
author
Felix Krull
<f_krull@gmx.de>
Fri, 31 May 2019 17:53:26 +0000
(19:53 +0200)
committer
Colin Walters
<walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000
(12:53 -0400)
rust-bindings/rust/src/repo_checkout_at_options.rs
patch
|
blob
|
history
diff --git
a/rust-bindings/rust/src/repo_checkout_at_options.rs
b/rust-bindings/rust/src/repo_checkout_at_options.rs
index 9d82a3cf8c6da4a82a09f9005cc45da4d6299598..ed65b17a62f57f249c28c93977063a46159f4e46 100644
(file)
--- a/
rust-bindings/rust/src/repo_checkout_at_options.rs
+++ b/
rust-bindings/rust/src/repo_checkout_at_options.rs
@@
-45,11
+45,13
@@
impl Default for RepoCheckoutAtOptions {
}
}
+type StringStash<'a, T> = Stash<'a, *const c_char, Option<T>>;
+
impl<'a> ToGlibPtr<'a, *const OstreeRepoCheckoutAtOptions> for RepoCheckoutAtOptions {
type Storage = (
Box<OstreeRepoCheckoutAtOptions>,
- St
ash<'a, *const c_char, Option<PathBuf>
>,
- St
ash<'a, *const c_char, Option<String>
>,
+ St
ringStash<'a, PathBuf
>,
+ St
ringStash<'a, String
>,
);
fn to_glib_none(&'a self) -> Stash<*const OstreeRepoCheckoutAtOptions, Self> {